package com.huwc;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 动态数据源的配置，需要排除掉原生的druid的自动配置，因为起会到yml文件中原生的路径下寻找配置参数
 */
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
@MapperScan("com.huwc.mapper")
@EnableRedisHttpSession
public class SpringbootSecondApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootSecondApplication.class, args);
    }

}

